﻿// 
function FocusB2()
{
}
//flash的路径
FocusB2.prototype.Path="../Flash/focus_ad.swf";
//flash中图片的宽高
FocusB2.prototype.ImgWidth=200;
FocusB2.prototype.ImgHeight=300;
//文字区域的宽高
FocusB2.prototype.TxtWidth=100;
//字体的背景色
FocusB2.prototype.TxtBackColor=0xffffff;
//字体背景透明度
FocusB2.prototype.TxtBackAlpha=60;
//标题文字颜色
FocusB2.prototype.TitleColor=0x00ff00;
FocusB2.prototype.TitleBackColor=0xffffff;
//简介文字的大小
FocusB2.prototype.TxtFontSize=14;
//简介文字字体颜色
FocusB2.prototype.TxtFontColor=0x999999;

//图片切换间隔帧数,单位为秒
FocusB2.prototype.ReturnNum = 15;
//图片地址
FocusB2.prototype.Pics="";
//新闻链接地址
FocusB2.prototype.Urls="";
//标题
FocusB2.prototype.Titles="";
//内容简介
FocusB2.prototype.Intros="";
//
//输出flash
FocusB2.prototype.write=function()
{
	var sceneHeight=this.ImgHeight+this.Pics.split("|").length*25-3;

	var str="<embed flashvars=\"imgWidth="+this.ImgWidth+"&imgHeight="+this.ImgHeight+
	"&txtBackColor="+this.TxtBackColor+"&txtBackAlpha="+this.TxtBackAlpha+
	"&titleColor="+this.TitleColor+"&titleBackColor="+this.TitleBackColor+
  "&txtWidth="+this.TxtWidth+"&txtFontSize="+this.TxtFontSize+"&txtFontColor="+this.TxtFontColor+
  "&pics="+this.Pics+"&titles="+this.Titles+"&intros="+this.Intros+
  "&urls="+this.Urls+"&returnNum="+this.ReturnNum+"\" "+
  "wmode=\"transparent\" "+
  "src=\""+this.Path+"\" quality=\"high\" width=\""+(this.ImgWidth+this.TxtWidth)+"\" height=\""+sceneHeight+"\" name=\"FocusB2\"  id=\"FocusB2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
//alert(str)
	document.write(str);
}